home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / misc-headers / termio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-08  |  705 b   |  38 lines  |  [TEXT/EMAC]

  1. /*
  2.  * This file is part of a Macintosh port of GNU Emacs.
  3.  * Copyright (C) 1993, 1994 Marc Parmet.  All rights reserved.
  4.  *
  5.  * GNU Emacs is distributed in the hope that it will be useful,
  6.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8.  * GNU General Public License for more details.
  9.  */
  10.  
  11. #pragma once
  12.  
  13. #include "sys/ioctl.h"
  14.  
  15. #define ECHO    1
  16. #define ECHOK    2
  17. #define ECHONL    4
  18. #define ICANON    8
  19.  
  20. #define OPOST    1
  21.  
  22. #define INLCR    1
  23. #define IGNCR    2
  24. #define ICRNL    4
  25.  
  26. #define VMIN    0
  27. #define VTIME    1
  28. #define VERASE    2
  29. #define VKILL    3
  30. #define CC_LEN    4
  31.  
  32. struct termio {
  33.     int c_lflag;
  34.     int c_oflag;
  35.     int c_iflag;
  36.     char c_cc[CC_LEN];
  37. };
  38.